<?php defined('_JEXEC') or die('Restricted access'); ?>

<?php echo $this->item->event->afterDisplayTitle; ?>
<?php echo $this->item->event->beforeDisplayContent; ?>

<?php if ($this->item->params->get('show_url') && $this->item->urls) : ?>
<span class="small">
	<a href="<?php echo $this->escape($this->item->urls); ?>" target="_blank">
		<?php echo $this->escape($this->item->urls); ?></a>
</span>
<?php endif; ?>

<div class="w317 mc">
    <div class="bg_img_p float_left">    	
        <a href="<?php echo $this->item->readmore_link; ?>"><img src="<?php echo $this->item->article_image; ?>" alt="<?php echo $this->item->title; ?>" width="126" height="79"/></a>                            
   	</div>
    <div class="float_right w160">
		<p class="p10t">
			<b><?php 
				$str = $this->escape($this->item->title); 
				echo (strlen($str) > 18 ? substr($str, 0, 18) . ' ...' : $str);
			?></b>
		</p>
        <p>
            <?php 
            $str = JFilterOutput::ampReplace($this->item->text);            	
            echo (strlen($str) > 90 ? substr(strip_tags($str), 0, 90) . ' ...' : strip_tags($str)); 
            ?>
            <?php if ($this->item->readmore_link){ //if ($this->item->readmore){ ?>
				<a href="<?php echo $this->item->readmore_link; ?>" class="readon">
					<?php					 
					if ($readmore = $this->item->params->get('readmore')){
						echo $readmore;
					}
					else{
						//echo JText::sprintf('Read more', '');
						echo JText::_('more ');						
            		} 
					?>
				</a>
			<?php } ?>	
    	</p>
	</div>
	<div class="cb"></div>
</div>


<?php echo $this->item->event->afterDisplayContent; ?>

